package com.nts.bupna.model;

public class Var implements Typed , Named {
    private String name;
    private String type;
    private boolean init;

    @Override
    public String toString() {
        return "Var [name=" + name + ", type=" + type + "]";
    }

    @Override
    public String getName() {
        return name;
    }

    @Override
    public String getType() {
        return type;
    }

    public boolean getInit() {
        return init;
    }

    public void setInit(final String init) {
        this.init = Boolean.parseBoolean(init);
    }

    @Override
    public void setType(final String type) {
        this.type = type;
    }

    @Override
    public void setName(final String name) {
        this.name = name;
    }
}